|
The Jaccard index, also known as the Jaccard similarity coefficient (originally coined ''coefficient de communauté'' by Paul Jaccard), is a statistic used for comparing the similarity and diversity of sample sets. The Jaccard coefficient measures similarity between finite sample sets, and is defined as the size of the intersection divided by the size of the union of the sample sets: : (If ''A'' and ''B'' are both empty, we define ''J''(''A'',''B'') = 1.) : The MinHash min-wise independent permutations locality sensitive hashing scheme may be used to efficiently compute an accurate estimate of the Jaccard similarity coefficient of pairs of sets, where each set is represented by a constant-sized signature derived from the minimum values of a hash function. The Jaccard distance, which measures ''dis''similarity between sample sets, is complementary to the Jaccard coefficient and is obtained by subtracting the Jaccard coefficient from 1, or, equivalently, by dividing the difference of the sizes of the union and the intersection of two sets by the size of the union: : An alternate interpretation of the Jaccard distance is as the ratio of the size of the symmetric difference to the union. This distance is a metric on the collection of all finite sets. There is also a version of the Jaccard distance for measures, including probability measures. If is a measure on a measurable space , then we define the Jaccard coefficient by , and the Jaccard distance by . Care must be taken if or , since these formulas are not well defined in that case. == Similarity of asymmetric binary attributes == Given two objects, ''A'' and ''B'', each with ''n'' binary attributes, the Jaccard coefficient is a useful measure of the overlap that ''A'' and ''B'' share with their attributes. Each attribute of ''A'' and ''B'' can either be 0 or 1. The total number of each combination of attributes for both ''A'' and ''B'' are specified as follows: : represents the total number of attributes where ''A'' and ''B'' both have a value of 1. : represents the total number of attributes where the attribute of ''A'' is 0 and the attribute of ''B'' is 1. : represents the total number of attributes where the attribute of ''A'' is 1 and the attribute of ''B'' is 0. : represents the total number of attributes where ''A'' and ''B'' both have a value of 0. |- ! 1 | style="background:#ffcccc;border:solid;border-right:none;"| | style="background:#66ff66;border:solid;border-top:none;border-left:none;"| |} Each attribute must fall into one of these four categories, meaning that : The Jaccard similarity coefficient, ''J'', is given as : The Jaccard distance, ''d''''J'', is given as : 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Jaccard index」の詳細全文を読む スポンサード リンク
|